<template>
	<view class="JFbox">
		<view class="message">
			<view class="messageBorder">
				<view class="message1">
					<text class="messageLeft">费用类型</text>
					<text class="messageRight">西药费</text>
				</view>
				<view class="cutOffRule"></view>
				<view class="message2">
					<text class="messageLeft">就诊科室</text>
					<text class="messageRight">消化内科</text>
				</view>
				<view class="cutOffRule"></view>
				<view class="message3">
					<text class="messageLeft">医生姓名</text>
					<text class="messageRight">李梅</text>
				</view>
				<view class="cutOffRule"></view>
				<view class="message4">
					<text class="messageLeft">就诊人</text>
					<text class="messageRight">牛韦</text>
				</view>
				<view class="cutOffRule"></view>
				<view class="message5">
					<text class="messageLeft">就诊卡号</text>
					<text class="messageRight">610********0989</text>
				</view>

			</view>
			<view class="detail">
				<view class="detailList">
					<view class="detailPre">费用明细</view>
					<view class="cutOffRule"></view>
					<view class="detailNext">
						<view class="detailNextL">
							<text>普罗布考片</text>
							<view class="drugName">
								<text class="text1">单价：￥50.00</text>
								<text class="text2">数量：3</text>
							</view>
						</view>
						<text class="detailNextR">￥150.00</text>
					</view>
				</view>
				<view class="cutOffRule"></view>
			</view>

			<view class="payment">
				<view class="paymentPre">
					<text class="text1">支付方式</text>
					<text class="text2">余额</text>
				</view>
				<view class="cutOffRule"></view>
				<view class="paymentNext">
					<view class="paymentNextL">
						<text class="text1">卡内余额</text>
						<text class="text2">2000.00元</text>
					</view>
					<!-- 			<text class="paymentNextR">
						<text class="text1" @click="goTopUp">去充值</text>
						<text class="iconfont icon-xiangyou_fanhui"></text>
					</text> -->
					<slot name="chongzhi"></slot>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	//去充值页面
	const goTopUp = () => {
		uni.navigateTo({
			url: '/pages/home/menzhenChagre/chargePage/chargePage'
		})
	}
	//去缴费信息
	const gojiaofeiXX = () => {
		uni.navigateTo({
			url: '/components/feng/jiaofeiXX/jiaofeiXX'
		})
	}
</script>

<style lang="scss">
	.cutOffRule {
		border: 1px solid #f2f2f2;
		margin: 0 20rpx;
	}

	.messageBorder {
		border: 1px solid #f2f2f2;
	}

	.JFbox {
		display: flex;
		flex-direction: column;
		margin: 0 36rpx;
		margin-top: 36rpx;

		//第一部分

		.message {
			display: flex;
			flex-direction: column;

			.message1 {
				display: flex;
				flex-direction: row;
				height: 100rpx;
				align-items: center;

				box-sizing: border-box;

				.messageLeft {
					margin-left: 16rpx;
					color: #c0c0c0;
				}

				.messageRight {
					margin-left: 16rpx;
					color: #5a5d5a;
				}
			}

			.message2 {
				display: flex;
				flex-direction: row;
				height: 100rpx;
				align-items: center;

				box-sizing: border-box;

				.messageLeft {
					margin-left: 16rpx;
					color: #c0c0c0;
				}

				.messageRight {
					margin-left: 16rpx;
					color: #5a5d5a;
				}
			}

			.message3 {
				display: flex;
				flex-direction: row;
				height: 100rpx;
				align-items: center;

				box-sizing: border-box;

				.messageLeft {
					margin-left: 16rpx;
					color: #c0c0c0;
				}

				.messageRight {
					margin-left: 16rpx;
					color: #5a5d5a;
				}
			}

			.message4 {
				display: flex;
				flex-direction: row;
				height: 100rpx;
				align-items: center;

				box-sizing: border-box;

				.messageLeft {
					margin-left: 16rpx;
					color: #c0c0c0;
				}

				.messageRight {
					margin-left: 16rpx;
					color: #5a5d5a;
				}
			}

			.message5 {
				display: flex;
				flex-direction: row;
				height: 100rpx;
				align-items: center;

				box-sizing: border-box;

				.messageLeft {
					margin-left: 16rpx;
					color: #c0c0c0;
				}

				.messageRight {
					margin-left: 16rpx;
					color: #5a5d5a;
				}
			}
		}

		.detail {
			display: flex;
			flex-direction: column;
			margin-top: 26rpx;
			border: 1px solid #f2f2f2;

			.detailPre {
				height: 80rpx;
				line-height: 80rpx;
				margin-left: 16rpx;
				color: #c0c0c0;
			}

			.detailNext {
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				height: 120rpx;
				box-sizing: border-box;
				align-items: center;

				.detailNextL {
					margin-left: 16rpx;

					.drugName {
						margin-top: 10rpx;

						.text1 {
							color: #c0c0c0;
							font-size: 20rpx;
						}

						.text2 {
							color: #c0c0c0;
							font-size: 20rpx;
							margin-left: 16rpx;
						}
					}
				}

				.detailNextR {
					margin-right: 16rpx;
				}
			}
		}

		//第二部分
		.detailList {
			margin-bottom: 20rpx;
		}

		//第三部分
		.payment {
			margin-top: 20rpx;
			border: 1px solid #f2f2f2;

			.paymentPre {

				height: 100rpx;
				line-height: 100rpx;

				.text1 {
					line-height: 100rpx;
					color: #afafaf;
					margin: 0 16rpx;
				}

				.text2 {
					color: #756d89;
				}
			}

			.paymentNext {
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				line-height: 100rpx;

				height: 100rpx;

				.text1 {
					line-height: 100rpx;
					color: #afafaf;
					margin: 0 16rpx;
				}

				.text2 {
					color: #756d89;
				}

				.paymentNextR {
					margin-right: 16rpx;

					.text1 {
						color: #006eff;
					}
				}
			}
		}

	}

	//第四部分
	.total {
		display: flex;
		flex-direction: row;
		margin-top: 50rpx;
		height: 100rpx;
		line-height: 100rpx;

		justify-content: space-between;


		.totalLeft {
			width: 50%;

			.text1 {
				font-size: 20rpx;
				margin-left: 36rpx;
				width: 50%;
			}

			.text2 {
				color: #f66363;

			}
		}

		.totalRight {
			width: 50%;
			display: inline-block;
			text-align: center;
			background-color: #006eff;
			color: #fff;
		}
	}
</style>
